package com.kaesar.spring.service;

import com.kaesar.spring.aop.TableInfo;
import com.kaesar.spring.aop.TableRoute;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author: chengk
 * @Date: 2021/9/13 11:17 上午
 */
@Slf4j
@Component
public class TableRouteService {
    @TableRoute(name = "t_voucher_header")
    public void test(TableInfo tableInfo) {
        log.info("表名：" + tableInfo.getTableName());
    }

    @TableRoute(name = "t_voucher_line")
    public void test2(TableInfo tableInfo) {
        log.info("表名：" + tableInfo.getTableName());
    }

    public String test3() {
        return "TableRouteService.class";
    }
}
